<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:p="http://primefaces.org/ui"
		xmlns:pt="http://xmlns.jcp.org/jsf/passthrough">
	<f:view locale="#{switcher.locale}">
		<h:head>
			<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
			<title>#{msg.titulo}</title>
		</h:head>
		<h:body>
		<center>
			<p:panel id="loginPanel" header="#{msg.label_login}" style="margin-bottom:10px;">
				<h:form id="loginForm">
					<h:panelGroup>
						<h:message for="login" errorStyle="color:red"/>
						<br/>
						<p:inputText value="#{representanteMB.usuario}" id="usuario" pt:placeholder="#{msg.label_usuario}" required="true" requiredMessage="#{msg.label_required}"/><h:message for="usuario" errorStyle="color:red"/>
						<br/>
						<p:password value="#{representanteMB.senha}" id="senha" pt:placeholder="#{msg.label_senha}" required="true" requiredMessage="#{msg.label_required}" /><h:message for="senha" errorStyle="color:red"/>
					</h:panelGroup>
					<br />
					<p:commandButton id="login" value="#{msg.label_login}" action="#{representanteMB.doLogin}" ajax="false" />
				</h:form>
			</p:panel>	
		</center>
		</h:body>
	</f:view>
</html>